
#include "TestApp.h"




//--------------------------------------------------------------------------------------
// Entry point to the program. Initializes everything and goes into a message processing 
// loop. Idle time is used to render the scene.
//--------------------------------------------------------------------------------------
int  main( int argc, char* argv[] )
{
	//HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow
	//HINSTANCE hInstance = GetInstanceModule();

	CTestApp theApp;
	theApp.init(argv[0]);
	// Main message loop
	MSG msg = {0};
	while( WM_QUIT != msg.message )
	{
		if( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) )
		{
			TranslateMessage( &msg );
			DispatchMessage( &msg );
			theApp.onEvent(msg);
		}
		else
		{
			theApp.updateFrame(20);
		}
	}

	theApp.uinit();
	return ( int )msg.wParam;
}









